]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: don't clone the whole message tray when layouting
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 13 Dec 2012 22:49:06 +0000 (17:49 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 13 Dec 2012 22:56:23 +0000 (17:56 -0500)
The message tray actor also includes notifications themselves. We want
our ghost to be sized as the base part of the tray instead.
Just make sure to use the same style class as the base actor then, as
its height is specified by the CSS.

https://bugzilla.gnome.org/show_bug.cgi?id=690174

js/ui/overview.js

index 40f4acfd8bab6046cc421238ea087fc6b2c41090..5ece49d5cdf4847e928038c1e2ced33650d03b5b 100644 (file)
@@ -243,7 +243,7 @@ const Overview = new Lang.Class({
                                           expand: true });
 
         // Then account for message tray
-        this._messageTrayGhost = new St.Bin({ child: new Clutter.Clone({ source: Main.messageTray.actor }),
+        this._messageTrayGhost = new St.Bin({ style_class: 'message-tray-summary',
                                               reactive: false,
                                               opacity: 0,
                                               x_fill: true,